﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.BaseLibrary.Tools.PageTools;
using SystemCenterSoa.DtoModel.ContractManager;
using SystemCenterSoa.IRepository.SystemManager;
using SystemCenterSoa.PoModel;
using SystemCenterSoa.PoModel.SystemManager;
using SystemCenterSoa.PoModel.SystemManager.MyModelPo;

namespace SystemCenterSoa.Service.SystemManager
{
   public class StructuralService : BaseService
    {
        private IStructural _iStructural;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="IModuleRepository">注入的dal</param>
        /// <param name="mapper">注入automap</param>

        public StructuralService(IStructural iStructural)
        {
            _iStructural = iStructural;
        }

        public List<Structural_style> StructuralTree()
        {
            return _iStructural.GetStructuralTree();
        }

        

        public List<Build_TypePo> GetBuildTree()
        {
            return _iStructural.GetBuildTree();
        }

        public List<DictionariesPo> GetDictionaryByType_key()
        {
            return _iStructural.GetDictionaryByType_key();
        }

        public bool ContractAdd(ContractPo po)
        {
            return _iStructural.ContractAdd(po);
        }
    }
}
